﻿namespace boda.utilities.Sockets
{
    public class WsMsgFrame
    {
        public WsMsgFrame()
        {

        }
        public WsMsgFrame(WSDataType opcode, WSDataMsg msg)
        {
            Opcode = opcode;
            Msg = msg;
        }

        public WsMsgFrame(WSDataType opcode, WSDataMsg msg, WSRoleLevel roleLevel)
        {
            Opcode = opcode;
            Msg = msg;
            RoleLevel = roleLevel;
        }
        public WSDataType Opcode { get; set; }
        public WSDataMsg? Msg { get; set; }
        public string? HashVal { get; set; }
        public string? Group { get; set; }
        public WSRoleLevel RoleLevel { get; set; }
    }
}
